<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>OOC</title>
		<script type="text/javascript">
			window.onload = function(){
				var links = document.getElementsByTagName("a");
				for(var i=0;i<links.length;i++){
					links[i].onclick = function(){
						alert("click");
					};
				}
			}
		</script>
	</head>
	<body>
		<br><a href="../index.jsp">back</a>
		<br><hr color="red" />
		<h5>onload批量注册事件</h5>
		<br><br><a href="#">one</a>
		<br><br><a href="#">two</a>
		<br><br><a href="#">three</a>
	</body>
</html>